package com.czw.hibernate.entity;

import caizw.hibernate.base.entity.BaseModel;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author caizw
 */
@Entity
@Table(name = "user")
public class User extends BaseModel implements Serializable {

    private static final long serialVersionUID = 1L;

    @Column
    private String name;
    @Column
    private String password;

    public User(){

    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

}
